#hit
tag @s[tag=!inf_hit] add generic_bow.before_hit

##Generic Arrow/Arrow Bundle: "hit" Event
execute as @s[tag=generic_arrow] run function dab:system/generic_arrow/hit

#"hit_block" event
function dab:system/generic_bow/run/command/hit_block with entity @s weapon.components."minecraft:custom_data".run

#sound control(Play SkinSound)
function dab:skins/sound/arrow/sound_control with entity @s weapon.components."minecraft:custom_data"

#remove spawned_tick
execute if data entity @s weapon.components."minecraft:custom_data".T_E_M_Parrow_data.spawned_tick run data remove entity @s weapon.components."minecraft:custom_data".T_E_M_Parrow_data.spawned_tick

#reArrow GameRule
execute as @s[tag=cant_reArrow] run return run kill @s
execute if entity @s[tag=!can_reArrow] run function util:gamerule_run/bool_false {gamerule_id:"re_arrow",run:"kill @s"}